package OOP;

public class Student 
{
	private String name;
	private int grade;
	private String subject;
	private String university;
	private String mail;
	private String tel;
	private static int countStudents = 0;
	
	Student(String name, int grade) 
	{
		this.name = name;
		this.grade = grade;
		countStudents += 1;
	}
	
	 Student(String name, int grade, String subject, String university) 
	 {
		 this(name, grade);
		 this.subject = subject;
		 this.university = university;
	 }
	 
	 void studentInfo() 
	 {
		 System.out.println("==== Student Info ====");
		 System.out.println("Name: " + this.name);
		 System.out.println("Grade: " + this.grade);
		 System.out.println("Subject: " + this.subject);
		 System.out.println("University: " + this.university);
		 System.out.println("Email: " + this.mail);
		 System.out.println("Telephone: " + this.tel);
		 System.out.println();
   	 }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getUniversity() {
		return university;
	}

	public void setUniversity(String university) {
		this.university = university;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public static int getCountStudents() {
		return countStudents;
	}

}
